import { NavBar } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
function Index() {
  const nav=useNavigate()
  
  const handleBack = () => {
    nav(-1) // 返回上一个页面
  }

  return (
    <div>
      <NavBar onBack={handleBack}>隐私协议</NavBar>
      
      
    </div>
  )
}

export default Index
